<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>审核结果</title>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <script src="../js/set-meta.js"></script>
  <link rel="stylesheet" type="text/css" href="../css/bindResult.css"/>
</head>

<body>
		<style type="text/css">
			.bottom-btn{position: fixed;bottom: 1rem;right: 1rem;}
			.bottom-btn li{display: inline-block;width: 1.2rem;height: 1.2rem;line-height: 1.2rem;text-align: center;border-radius: 50%;background: #666;color: #fff;}
			.bottom-btn li.mui-active{background: #8DC4F4;}
		</style>
		<ul class="bottom-btn">
			<li class="mui-active">1</li>
			<li>2</li>
			<li>3</li>
		</ul>
		<script type="text/javascript">
			
		</script>
		
		<header class="mui-bar-nav mui-bar-nav-1">
				<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
				<p class="mui-title mui-pull-left">审核结果</p>
				<p class="submitBtn">新增</p>
		</header>
		
		<div class="mui-content" >
			 <div class="result-part result-success">
			 		<div class="result-icon result-icon-1">			 		
					 </div>
					 <p class="bind-result">审核成功</p>
					 <p class="bind-result-detail">
					 		恭喜你，身份审核成功，信息已绑定到应用，您可以点击新增继续添加下一位老人信息。
					 </p>
			 </div>
			 <div class="result-part result-ing">
			 		<div class="result-icon result-icon-2">			 		
					 </div>
					 <p class="bind-result">审核失败</p>
					 <p class="bind-result-detail">
					 		很抱歉！身份证号码核对不正确请重新核对身份证号码再次提交审核。
					 </p>
			 </div>
			 <div class="result-part result-fail mui-active">
			 		<div class="result-icon result-icon-3">			 		
					 </div>
					 <p class="bind-result">您的信息已提交审核</p>
					 <p class="bind-result-detail">
					 		审核需要<span>2~7</span>个工作日，请耐心等待。
					 </p>
			 </div>
			 <div id="sureBtn">
			 		返回首页
			 </div>
		</div>
<script>
	 		$('#loginBtn').on('tap',function(){
	 			//登录检查进index
	 			App.showPage('index');
	 		});
	 		$('#forgetPassword').on('tap',function(){
	 			//登录检查进index
	 			App.showPage('resetPassword');
	 		});
	 		
	 		$('.bottom-btn li').on('tap',function(){
	 				console.log($(this).index());
	 				$('.result-part').removeClass('mui-active');
	 				$('.bottom-btn li').removeClass('mui-active');
	 				$('.result-part').eq($(this).index()).addClass('mui-active');
	 				$('.bottom-btn li').eq($(this).index()).addClass('mui-active');
	 		});
	 		
	 		$('.submitBtn').on('tap',function(){
	 			App.showPage('bind');
	 		});
	 		
	 		$('#sureBtn').on('tap',function(){
//	 			var lists = plus.webview.all();
//	 			for (var i in lists) {
//					if (lists[i].id == 'bind') {
//						plus.webview.close(lists[i].id);
//						break
//					}
//				}
	 			mui.back();
//	 			App.showPage('personCenter');
	 		});
	 		
	 		$(function() {　
			 		mui.plusReady(function() {
				    //预加载页面
				  });
				  mui.init({
						gestureConfig: {
							tap: true,
							//默认为true
							doubletap: true,
							//默认为false
							longtap: true,
							//默认为false
							swipe: true,
							//默认为true
							drag: true,
							//默认为true
							hold: false,
							//默认为false，不监听
							release: false
						},
						beforeback: function(){
							//获得列表界面的webview
							var lists = plus.webview.all();
							for (var i in lists) {
								if (lists[i].id == 'personCenter') {
									var personCenter = plus.webview.getWebviewById('personCenter');
									mui.fire(index,'backPerson',{jsonStr:"true"});
									return
								}				
							}
							for (var i in lists) {
								if (lists[i].id == 'index') {
									var index = plus.webview.getWebviewById('index');
									mui.fire(index,'backIndex',{jsonStr:"true"});
									return
								}			
							}
						}
					});
			});

		</script>
<!--<script src="../js/login.js"></script>-->

</body>

</html>